package com.revenco.bi.controller;

import javax.servlet.http.HttpSession;

import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseStatus;

import com.revenco.bi.controller.basecontroller.AbstractUserAwareController;

@Controller
public class I18n extends AbstractUserAwareController{
	@RequestMapping(value="/i18n")
	@ResponseStatus(HttpStatus.OK)
	public void setLanguage(HttpSession session,@RequestParam String language){
		log.debug(language);
		session.setAttribute("languageType", language);
	}
}
